<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ include file="/system/include/taglib.jsp"%>
<c:if test="${!requestScope.checked }">
	<jsp:forward page="/system/search/unisearch.jsp?module=declare/declare_check.do"></jsp:forward>
</c:if>
<c:if test="${requestScope.checked }">
<mytag:View name="ccdjxx" table="com.zhongkai.model.book.TDjCcdjxx" id="${param.ccdjh }"></mytag:View>
<jsp:useBean id="date" class="java.util.Date" scope="page" />
<html>
<head>
<base href="${pageScope.basePath }">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<title>中山市中凯信息科技有限公司</title>
<link type="text/css" rel="stylesheet" href="system/css/style.css" />
<script type="text/javascript" language="javascript" src="system/js/public.js"></script>
<script type="text/javascript" language="javascript" src="system/js/DatePicker/WdatePicker.js"></script>
<script type="text/javascript" language="javascript" src="system/js/jquery-1.4.2.js"></script>
<script type="text/javascript" language="javascript" src="system/js/jquery.blockUI.js"></script>
<script type="text/javascript" language="javascript">
$(document).ready(function(){
	autoHeight();
});

/*iframe自适应高度*/
function autoHeight(){
	var bHeight = $$("declare_calculate_iframe").contentWindow.document.body.scrollHeight;
	var dHeight = $$("declare_calculate_iframe").contentWindow.document.documentElement.scrollHeight;
	var height = Math.max(bHeight, dHeight);
	$$("declare_calculate_iframe").height =  height + 15;
}
</script>
</head>
<body>
<div class="main">
	<div class="position">当前位置: <a href="sysadm/desktop.jsp">桌 面</a> → 车船税申报</div>
	<div class="mainbody">
		<div class="operate_info">操作说明：带 * 号必填</div>
		<c:if test="${ccdjxx.djztDm=='02' }"><div class="warn_info">当前车船登记状态为[已迁出]，无法进行车船申报！</div></c:if>
		<c:if test="${ccdjxx.djztDm=='09' }"><div class="warn_info">当前车船登记状态为[已注销]，无法进行车船申报！</div></c:if>
		<div class="table">
			<form action="system/declare/declare_calculate.do" method="post" target="declare_calculate_iframe">
				<input name="ccdjh" id="ccdjh" type="hidden" value="${ccdjxx.ccdjh }" />
				<table width="100%" border="0" cellpadding="1" cellspacing="1" class="declare_form">
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td colspan="4" height="30" bgcolor="#E2E8EB" style="font-size:14px;font-weight:bold;">车船登记信息</td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)" height="30">
						<th align="right" width="15%">车主类别：</th>
						<td width="35%">
							<mytag:View name="czlb" table="com.zhongkai.model.book.TDmCcsCzlb" entityStringId="true" id="${ccdjxx.czlbDm }"></mytag:View>
							${czlb.czlbMc }
						</td>
						<th align="right" width="15%">登记状态：</th>
						<td>
							<mytag:View name="djzt" table="com.zhongkai.model.book.TDmCcsDjzt" entityStringId="true" id="${ccdjxx.djztDm }"></mytag:View>
							${djzt.djztMc }
						</td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)" height="30">
						<th align="right">纳税人编码：</th>
						<td>${ccdjxx.nsrbm }</td>
						<th align="right">车船登记号：</th>
						<td>${ccdjxx.ccdjh }</td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)" height="30">
						<th align="right">车主名称：</th>
						<td>${ccdjxx.czMc }</td>
						<th align="right">
							<c:if test="${ccdjxx.czlbDm=='02' }">身份证号码：</c:if>
						</th>
						<td>
							<c:if test="${ccdjxx.czlbDm=='02' }">${ccdjxx.sfzhm }</c:if>
						</td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)" height="30">
						<th align="right">车船牌照号码：</th>
						<td>${ccdjxx.ccpzh }</td>
						<th align="right">车船类型：</th>
						<td>
							<mytag:View name="jjcclx" table="com.zhongkai.model.book.TDmCcsJjcclx" entityStringId="true" id="${ccdjxx.jjcclxDm }"></mytag:View>
							${jjcclx.jjcclxMc }
						</td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)" height="30">
						<th align="right">车架号：</th>
						<td>${ccdjxx.cjh }</td>
						<th align="right">&nbsp;</th>
						<td>&nbsp;</td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)" height="30">
						<th align="right">核定载重量（吨）：</th>
						<td>${ccdjxx.hdzzl }</td>
						<th align="right">核定载客（人）：</th>
						<td>${ccdjxx.hdzkl }</td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)" height="30">
						<th align="right">整备质量（吨）：</th>
						<td>${ccdjxx.zbzl }</td>
						<th align="right">排气量：</th>
						<td>${ccdjxx.pql }</td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)" height="30">
						<th align="right">应税起始年月：</th>
						<td>${ccdjxx.sbqsny }</td>
						<th align="right">申报期限：</th>
						<td><fmt:formatDate type="date" pattern="yyyy" value="${date }" />-12-31</td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)" height="30">
						<th align="right">申报时间（止）：</th>
						<td>
							<input name="ssqzRq" id="ssqzRq" readonly="readonly" value="<fmt:formatDate type="date" pattern="yyyy" value="${date }" />-12" onfocus="new WdatePicker(this,'%Y-%M',false,'default')" MINDATE="${fn:substring(ccdjxx.sbqsny,0,4) }-${fn:substring(ccdjxx.sbqsny,4,6) }-01" MAXDATE="<fmt:formatDate type="date" pattern="yyyy" value="${date }" />-12-31" style="width:75px;" />
							<span style="color: red;">*不能超过<fmt:formatDate type="date" pattern="yyyy" value="${date }" />-12-31</span>
						</td>
						<td colspan="2" style="text-align:center;">
							<input id="declare_calculate_button" type="submit" value="计算申报" class="system_button" />
						</td>
					</tr>
				</table>
			</form>
			<table width="100%" border="0" cellpadding="1" cellspacing="1" class="table_list" style="margin-top:10px;">
				<tr>
					<td height="30" bgcolor="#E2E8EB" style="font-size:14px;font-weight:bold;">申报资料</td>
				</tr>
				<tr>
					<td>
						<iframe name="declare_calculate_iframe" id="declare_calculate_iframe" width="100%" scrolling="no" frameborder="0" src="system/declare/declare_calculate.do?ccdjh=${ccdjxx.ccdjh }"></iframe>
					</td>
				</tr>
			</table>
		</div>
	</div>
</div>
</body>
</html>
</c:if>